package com.example.oj.service;

import com.example.oj.mapper.OJMapper;
import com.example.oj.model.OJ;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OJService {
    @Autowired
    private OJMapper ojMapper;
    public List<OJ> select() {
        return ojMapper.select();
    }

    public OJ selectOne(Integer id) {
        return ojMapper.selectOne(id);
    }
}
